package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 *  <desc>
 *      物业菜单资源实体类
 * </desc>
 *
 * @createDate 2017/10/12
 */
@ItlTables("property_function")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class PropertyFunctionPO extends  BasePO implements Serializable {


    /**
     * 资源id
     */
    @ItlField(value = "function_id",logicKey = "key")
    private String functionId;

    /**
     * 父节点
     */
    @ItlField("parent")
    private String parent;

    /**
     * 资源名称
     */
    @ItlField("function_name")
    private String functionName;

    /**
     * 资源url
     */
    @ItlField("function_url")
    private String functionUrl;

    /**
     * 资源图标
     */
    @ItlField("icon")
    private String icon;

    /**
     * 资源类型：1菜单 2按钮
     */
    @ItlField("function_type")
    private Integer functionType;

    /**
     * 操作标识
     */
    @ItlField("identifier")
    private String identifier;

    /**
     * 排序号
     */
    @ItlField("orders")
    private Integer orders;

    //操作权限拦截url
    @ItlField("intercept_url")
    private String interceptUrl;

    private String parentName;              //父节点名称

}